package com.woniu.learnaop.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * created  by woniu201
 * created in 2018/4/6
 */
@RestController
public class TestController {

    @RequestMapping(value = "/test/{name}", method = RequestMethod.GET )
    public String test(@PathVariable String name){
        //int c = 1/0;
        return "this is test!" + "----" + name;
    }
}
